package com.mocha.activities;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.view.Menu;
import android.view.MenuItem;
import android.view.Window;

public class IntroActivity extends Activity {
	
	Handler introHandler;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_intro);
		
		introHandler = new Handler();
		introHandler.postDelayed(runIntro, 1000);
	}
	
	Runnable runIntro = new Runnable() {
		@Override
		public void run() {
			Intent i = new Intent(IntroActivity.this, MainActivity.class);
			startActivity(i);
			finish();
			// Fade in-out effect
			overridePendingTransition(android.R.anim.fade_in, android.R.anim.fade_out);
		}
	};

	@Override
	public void onBackPressed() {
		
	}
}
